-- drop_rate1
-- create by wangy
-- 魔法物品发现几率 +N%

return {
    apply = function(prop, baseValue)
        if prop[3] <= 0 then
            return baseValue;
        end

        -- 增加
        return baseValue + math.modf(baseValue * prop[3] / 1000);
    end,

    desc = function(prop)
        local desc = PropM.query(prop[1], "desc");
        local str = prop[2];
        
        desc = string.gsub(desc, "{1}", prop[3] / 10);
        desc = string.gsub(desc, "{0}", getLocStr(str));

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};
